/**
 * Copyright JHDZ corp.
 */
package jhsys.hithink.animview;

import android.content.Context;
import android.os.Handler;
import android.util.AttributeSet;
import android.view.View;

/**
 * @author jiangwei
 * @Email weijiang8410@163.com
 * @上午9:21:07
 */
public abstract class SceneView extends View{

	Context mContext;
	
	public SceneView(Context context, AttributeSet attrs) {
		super(context, attrs);
		mContext = context;
	}

	public SceneView(Context context) {
		super(context);
		mContext = context;
	}

	public static final int UPDATE_FRAME_DELAY = 25;
	public static final int UPDATE_FRAME_PILLAR_DELAY = 20;
	
	// effect or animation
	Handler mHandler = new Handler() {
		public void handleMessage(android.os.Message msg) {
			onHandleMessage(msg);
		};
	};
	// implement this method
	public abstract void onHandleMessage(android.os.Message msg);
	// do in app start
	public abstract void init(int width, int height);
	// if have
	public void startOnAnimation() {
		
	}
}
